package client.comm.baoding.ui.vm

import android.app.Application
import androidx.lifecycle.MutableLiveData
import client.comm.commlib.network.data.JsonResult
import client.comm.commlib.network.data.WlDetail
import client.comm.baoding.ui.viewmodel.MiddleVm

class WlDetailViewModel(app: Application) : MiddleVm(app) {
    val call = MutableLiveData<JsonResult<WlDetail>>()
    val isShowing = MutableLiveData<Boolean>()

    fun getData(id: String) {
        hold({
            server.deliver_info(id)
        }, {

        }, {
            call.value = it
        })
    }

}